package com.order.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.order.po.order_record;
import com.order.service.order_recordService;
import com.order.dao.order_recordDao;
@Service
@Transactional
public class order_recordServiceImpl implements order_recordService {
	@Autowired
	   private order_recordDao order_recordDao;
	@Override
	public List<order_record> get_order_record_byid(String parameter) {
		// TODO Auto-generated method stub
		return order_recordDao.get_order_record_byid(parameter);
	}
	@Override
	public void inser_order_record(List<order_record> list) {
		// TODO Auto-generated method stub
		for(int i=0;i<list.size();i++) {
			order_record o = list.get(i);
			order_recordDao.inser_order_record(o);
		}
		
	}

}
